import request from '@/assets/utils/request.js'
export const getinterviewList = params => {
  return request({
    url: '/articles',
    method: 'GET',
    params
  })
}
export const deleteinterviewList = id => {
  return request({
    url: '/articles/' + id,
    method: 'DELETE',
  })
}
export const addinterviewList = data => {
  return request({
    url: '/articles',
    method: 'POST',
    data
  })
}
export const changearticle = (id, data) => {
  return request({
    url: '/articles/' + id,
    method: 'PUT',
    data
  })
}
export const changearticlestate = (id, state) => {
  return request({
    url: '/articles/' + id + '/' + state,
    method: 'POST',
  })
}
export const articledetails = (id) => {
  return request({
    url: '/articles/' + id,
    method: 'GET',
  })
}
